// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router'

import Mint from 'mint-ui'
import 'mint-ui/lib/style.css'
import 'mint-ui/lib/style.min.css'
import 'mint-ui/lib/index.js'
import 'mint-ui/lib/mint-ui.common.js'

import home from './components/home.vue'
import find from './components/find.vue'
import hot from './components/hot.vue'
import mine from './components/mine.vue'
import test from './components/test.vue'
import more from './components/more.vue'



Vue.use(VueRouter)
Vue.use(Mint)

// 创建一个路由器实例并且配置路由规则
const routes = [
  { path: '/home', component: home },
  { path: '/find', component: find },
  { path: '/hot', component: hot },
  { path: '/mine', component: mine },
  { path: '/test', component: test },
  { path: '/more', component: more },
]

const router = new VueRouter({
  routes // （缩写）相当于 routes: routes
})

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App },
   router: router
})

router.push('/home');
